package org.jeecg.modules.basic.goods.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.basic.goods.entity.LwgyMaterialGoods;
import org.jeecg.modules.basic.goods.mapper.LwgyMaterialGoodsMapper;
import org.jeecg.modules.basic.goods.service.ILwgyMaterialGoodsService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import javax.annotation.Resource;

/**
 * @Description: 物料物品管理
 * @Author: jeecg-boot
 * @Date:   2021-04-01
 * @Version: V1.0
 */
@Service
public class LwgyMaterialGoodsServiceImpl extends ServiceImpl<LwgyMaterialGoodsMapper, LwgyMaterialGoods> implements ILwgyMaterialGoodsService {

    @Resource
    private LwgyMaterialGoodsMapper lwgyMaterialGoods;

    @Override
    public IPage<LwgyMaterialGoods> queryPageCustomer(Page<LwgyMaterialGoods> page, QueryWrapper<LwgyMaterialGoods> queryWrapper) {
        queryWrapper.isNotNull("gs.id");
        return page.setRecords(lwgyMaterialGoods.queryPageListCustom(page,queryWrapper));
    }

    @Override
    public IPage<LwgyMaterialGoods> queryPageCustomers(Page<LwgyMaterialGoods> page, QueryWrapper<LwgyMaterialGoods> queryWrapper,String studentCampus,String inventoryName) {
        return page.setRecords(lwgyMaterialGoods.queryPageListCustoms(page,queryWrapper, studentCampus,inventoryName));
    }
}
